package com.jichangxiu.server.platform.entity.map;

import com.jichangxiu.server.platform.entity.po.PlatformMenu;
import com.jichangxiu.server.platform.entity.vo.PlatformMenuAddVo;
import com.jichangxiu.server.platform.entity.vo.PlatformMenuEditVo;
import com.jichangxiu.server.platform.entity.vo.PlatformMenuQueryVo;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * PlatformMenuBasic:
 *
 * @author Jcx
 * @create 2023-03-26 13:02
 */
@Mapper(builder = @Builder(disableBuilder = true))
public interface PlatformMenuBasic {

    public PlatformMenuBasic INSTANCE = Mappers.getMapper(PlatformMenuBasic.class);

    /**
     * 转换 PlatformMenu
     *
     * @param platformMenuAddVo 视图对象
     * @return 数据库对象
     */
    public PlatformMenu toPlatformMenu(PlatformMenuAddVo platformMenuAddVo);

    /**
     * 转换 PlatformMenu
     *
     * @param platformMenuEditVo 视图对象
     * @return 数据库对象
     */
    public PlatformMenu toPlatformMenu(PlatformMenuEditVo platformMenuEditVo);

    /**
     * 转换 PlatformMenu
     *
     * @param platformMenuQueryVo 视图对象
     * @return 数据库对象
     */
    public PlatformMenu toPlatformMenu(PlatformMenuQueryVo platformMenuQueryVo);

}
